package com.lighting.smssystem.service;

import com.github.qcloudsms.httpclient.HTTPException;
import com.lighting.smssystem.model.Template;

import java.io.IOException;
import java.util.Map;

/**
 * @author leemaster
 * @Title: ISmsService
 * @Package com.lighting.smssystem.service
 * @Description:
 * @date 2019-06-0120:49
 */
public interface ISmsService {

    void sendSingleSms(Template template, Map<String,String> params,String phone) throws HTTPException, IOException;

    void sendSingleSms(String content,String phone) throws HTTPException, IOException;

    void sendMultiSms(Template template, Map<String,String> params,String[] phones) throws HTTPException, IOException;

    void sendMultiSms(String content,String[] phones) throws HTTPException, IOException;
}
